package com.gexin.common.event;

import com.jfinal.core.Controller;
import com.jfinal.ext.route.ControllerBind;
import net.dreamlu.event.EventKit;

@ControllerBind(controllerKey = "/event/demo", viewPath = "jsp/demo/")
public class EventDemoController extends Controller {


	public void index() {
		for (int i = 0; i < 1; i++) {
			AccountEvent  a  =new AccountEvent();
			a.setAge(12+i);
			a.setName("XiaoDeMing"+i);
			EventKit.post(a);
		}
		renderText("ok");
	}

}
